import { SET_WEB_INFO } from '../constant';

const initState = JSON.parse(localStorage.getItem('webInfo')) || {}
export default function webInfo (preState = initState,action) {
    const {type,data} = action
    switch (type) {
        case SET_WEB_INFO:
            return {...preState, ...data}
        default:
            return preState; 
    }
};
